﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainMenuSceneState : ISceneState {
    public MainMenuSceneState(SceneController sceneController) : base(sceneController, "02MainMenuScene")
    {
    }

    public override void StateStart()
    {
        GameObject.Find("StartButton").GetComponent<Button>().onClick.AddListener(OnClickStartButton);
    }
    private void OnClickStartButton()
    {
        m_sceneController.SetState(new BattleSceneState(m_sceneController));
    }
}
